package br.com.rise.leilao.financeiro

import grails.test.*

class BancoIntegrationTests extends GroovyTestCase {
	protected void setUp() {
		Banco.list()*.delete()
		//end = new Endereco()
		new Banco(nome:"Banco do Brasil", codigo: "123").save()
		//.addToAgencia(numero:"12345", Endereco: end)
		super.setUp()
	}

	void testBanco(){
		def bank = Banco.findByNome("Banco do Brasil")
		assert bank.count()== 1
	}
}
